3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next
QuickDraw 3D provides several routines to support renderers that are handling much of the draw region work themselves. They return the X-axis and Y-axis values of various sizes and offsets of the raster.
Putting functionality at this level of detail in a renderer is strongly discouraged.
For a draw region, the Q3XDrawRegion_GetDeviceScaleX function lets you get the X-dimension size of the visible (onscreen) portion of the unclipped window.
TQ3Status Q3XDrawRegion_GetDeviceScaleX(
TQ3XDrawRegion drawRegion,
float *deviceScaleX);
For a draw region, the Q3XDrawRegion_GetDeviceScaleY function lets you get the Y-dimension size of the visible (onscreen) portion of the unclipped window.
TQ3Status Q3XDrawRegion_GetDeviceScaleY(
TQ3XDrawRegion drawRegion,
float *deviceScaleY);
The Q3XDrawRegion_GetDeviceOffsetX function lets you get the X-axis window offset, relative to the monitor, for a draw region.
TQ3Status Q3XDrawRegion_GetDeviceOffsetX(
TQ3XDrawRegion drawRegion,
float *deviceOffsetX);
The Q3XDrawRegion_GetDeviceOffsetX function returns, in the deviceOffsetX parameter, the X-axis offset between the window and the monitor origin (upper left corner) for the draw region designated by drawRegion. With single buffering this value is the actual offset; with double buffering it is always 0.
The Q3XDrawRegion_GetDeviceOffsetY function lets you get the Y-axis window offset, relative to the monitor, for a draw region.
TQ3Status Q3XDrawRegion_GetDeviceOffsetY(
TQ3XDrawRegion drawRegion,
float *deviceOffsetY);
The Q3XDrawRegion_GetDeviceOffsetY function returns, in the deviceOffsetY parameter, the Y-axis offset between the window and the monitor origin (upper left corner) for the draw region designated by drawRegion. With single buffering this value is the actual offset; with double buffering it is always 0.
The Q3XDrawRegion_GetWindowScaleX function lets you get the X-axis window dimension for a draw region.
TQ3Status Q3XDrawRegion_GetWindowScaleX(
TQ3XDrawRegion drawRegion,
float *windowScaleX);
The Q3XDrawRegion_GetWindowScaleY function lets you get the Y-axis window dimension for a draw region.
TQ3Status Q3XDrawRegion_GetWindowScaleY(
TQ3XDrawRegion drawRegion,
float *windowScaleY);
The Q3XDrawRegion_GetWindowOffsetX function lets you get the absolute X-axis window offset for a draw region.
TQ3Status Q3XDrawRegion_GetWindowOffsetX(
TQ3XDrawRegion drawRegion,
float *windowOffsetX);
The Q3XDrawRegion_GetWindowOffsetY function lets you get the absolute Y-axis window offset for a draw region.
TQ3Status Q3XDrawRegion_GetWindowOffsetY(
TQ3XDrawRegion drawRegion,
float *windowOffsetY);
The Q3XDrawRegion_GetDeviceTransform function lets you get the device transform for a draw region.
TQ3Status Q3XDrawRegion_GetDeviceTransform(
TQ3XDrawRegion drawRegion,
TQ3Matrix4x4 **deviceTransform);
Previous | QD3D Book | Overview | Chapter Contents | Next